import 'config.dart';

class Urls {
  static final onlineStatus = "${Config.imApiUrl}/manager/get_users_online_status";
  static final queryAllUsers = "${Config.imApiUrl}/manager/get_all_users_uid";
  static final searchFriendInfo = "${Config.appAuthUrl}/friend/search";
  static final getUsersFullInfo = "${Config.appAuthUrl}/user/find/full";
  static final searchUserFullInfo = "${Config.appAuthUrl}/user/search/full";

  static final getVerificationCode = "${Config.ssoAuthUrl}/api/v1/auth/send-code";
  static final sendEmailCode = "${Config.ssoAuthUrl}/api/v1/auth/send-email-code";
  static final checkVerificationCode = "${Config.ssoAuthUrl}/api/v1/auth/check-code"; 
  static final checkEmailVerificationCode = "${Config.ssoAuthUrl}/api/v1/auth/check-email-code";
  static final register = "${Config.ssoAuthUrl}/api/v1/auth/register";
  static final registerEmail = "${Config.domainBackendUrl}/api/v1/auth/register-email";
  static final login = "${Config.ssoAuthUrl}/api/v1/auth/login";
  static final loginWithCode = "${Config.ssoAuthUrl}/api/v1/auth/login-with-code";

  // 更新为domain-backend的重置密码接口
  static final resetPwd = "${Config.domainBackendUrl}/api/v1/auth/reset-password";
  static final changePwd = "${Config.appAuthUrl}/account/password/change";


  static final upgrade = "${Config.appAuthUrl}/app/check";
  static final getClientConfig = '${Config.appAuthUrl}/client_config/get';
  static final getTokenForRTC = "${Config.appAuthUrl}/user/rtc/get_token";

   // 添加domain-backend相关接口
  static final createPost =  "${Config.domainBackendUrl}/api/v1/posts/";
  static final getPostsByCircle = "${Config.domainBackendUrl}/api/v1/circles"; // 修改这一行
  static final getPostsByTag = "${Config.domainBackendUrl}/api/posts/tag";
  static final getAllCircles = "${Config.domainBackendUrl}/api/v1/circles"; // 添加这一行
  static final getTags = "${Config.domainBackendUrl}/api/v1/tags";
  static final deletePost = "${Config.domainBackendUrl}/api/v1/posts";
  static final updatePost = "${Config.domainBackendUrl}/api/v1/posts";
  static final searchPosts = "${Config.domainBackendUrl}/api/v1/posts/search";
  static final submitAnonymousFeedback = "${Config.domainBackendUrl}/api/v1/feedback/anonymous";
  static final getProfile = "${Config.domainBackendUrl}/api/v1/user/profile";
  static final getUserIDByContact = "${Config.domainBackendUrl}/api/v1/auth/user-id";
  static final updateUserInfo = "${Config.domainBackendUrl}/api/v1/user/profile";
  static final getProfileByUserID = "${Config.domainBackendUrl}/api/v1/user/profile";
  static final getProfileByOpenIMID = "${Config.domainBackendUrl}/api/v1/user/profile/openim";
}
